<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="/shop/include :: header"></head>
<body>
	<form class="layui-form" action="" lay-filter="shop_evaluation-update-form" style="margin-top: 20px;">
		<input th:value="${session.formToken}" name="formToken" type="hidden" />
		<input name="id" th:value="${shopEvaluation.id}"
			type="hidden">
		<!--  -->
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">添加评价人id ：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="addEvaluationId"
					th:value="${shopEvaluation.addEvaluationId}" name="addEvaluationId"
					placeholder="请输入添加评价人id ">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">添加评价人群体  0：用户1：商户：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="addEvaluationType"
					th:value="${shopEvaluation.addEvaluationType}" name="addEvaluationType"
					placeholder="请输入添加评价人群体  0：用户1：商户">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">添加评价人头像：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="addEvaluationHead"
					th:value="${shopEvaluation.addEvaluationHead}" name="addEvaluationHead"
					placeholder="请输入添加评价人头像">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">添加评价人昵称：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="addEvaluationNickName"
					th:value="${shopEvaluation.addEvaluationNickName}" name="addEvaluationNickName"
					placeholder="请输入添加评价人昵称">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">被评价人id：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="beiEvaluationId"
					th:value="${shopEvaluation.beiEvaluationId}" name="beiEvaluationId"
					placeholder="请输入被评价人id">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">被评价人群体 0：商户1：供应商：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="beiEvaluationType"
					th:value="${shopEvaluation.beiEvaluationType}" name="beiEvaluationType"
					placeholder="请输入被评价人群体 0：商户1：供应商">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">被评价人头像：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="beiEvaluationHead"
					th:value="${shopEvaluation.beiEvaluationHead}" name="beiEvaluationHead"
					placeholder="请输入被评价人头像">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">被评价人昵称：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="beiEvaluationNickName"
					th:value="${shopEvaluation.beiEvaluationNickName}" name="beiEvaluationNickName"
					placeholder="请输入被评价人昵称">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">评价内容：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="content"
					th:value="${shopEvaluation.content}" name="content"
					placeholder="请输入评价内容">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">星级（五星）：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="starLevel"
					th:value="${shopEvaluation.starLevel}" name="starLevel"
					placeholder="请输入星级（五星）">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">图片：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="images"
					th:value="${shopEvaluation.images}" name="images"
					placeholder="请输入图片">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">被评价方回复内容：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="replyContent"
					th:value="${shopEvaluation.replyContent}" name="replyContent"
					placeholder="请输入被评价方回复内容">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">评价时间：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="commentTime"
					th:value="${#dates.format(shopEvaluation.commentTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="commentTime" placeholder="请输入评价时间">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">删除状态 0：未删除1：已删除：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="deleteFlag"
					th:value="${shopEvaluation.deleteFlag}" name="deleteFlag"
					placeholder="请输入删除状态 0：未删除1：已删除">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">创建时间：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="createTime"
					th:value="${#dates.format(shopEvaluation.createTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="createTime" placeholder="请输入创建时间">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">修改时间：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="updateTime"
					th:value="${#dates.format(shopEvaluation.updateTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="updateTime" placeholder="请输入修改时间">
			</div>
		</div>
 		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="shop_evaluation-update">立即提交</button>
			</div>
		</div>
	</form>
	<div th:include="/shop/include::footer"></div>
	<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
	<script>
		layui.use([ 'layer', 'jquery', 'form', 'laydate' ], function() {
			var $ = layui.jquery;
			var laydate = layui.laydate;
			var layer = layui.layer;
			var form = layui.form;

			//日期时间选择器
             			laydate.render({
				elem : '#commentTime',
				type : 'datetime'
			});
  			laydate.render({
				elem : '#createTime',
				type : 'datetime'
			});
 			laydate.render({
				elem : '#updateTime',
				type : 'datetime'
			});
 
			//监听提交
			form.on('submit(shop_evaluation-update)', function(data) {
				//提交数据data.field
				ajaxPostLoad("/shop/evaluation/update", data.field);
				return false;
			});
		});
	</script>
</body>
</html>